package com.hydl.power.service;

import com.github.pagehelper.PageInfo;
import com.hydl.power.pojo.PowerRoom;
import com.hydl.power.pojo.SysUser;
import com.hydl.power.utils.Resp;
import com.hydl.power.utils.TableUtils;

import java.util.List;

public interface PowerRoomService {
    /**
     *查询配电房A
     **/
    PageInfo<PowerRoom> selectByConditions(Integer pageNum, Integer pageSize);

    int addPowerRoom(String roomName,String address,String areaId,String projectId,Integer highVoltageBoard,Integer lowPressureTank);

    int delPowerRoom(Integer id);

    /*修改配电房信息*/
    int updatePowerRoomById(Integer id,String roomName,String address,String highVoltageBoard,String lowPressureTank);

    /*根据id查询配电房信息*/
    PowerRoom getAllById(Integer id);
    /** 按项目id查询配电房*/
    List<PowerRoom> selectNavbarByNavId(String projectId);
    /** 按城市id查询配电房*/
    List<PowerRoom> selectByAreaId(String cityId);
    List<PowerRoom> all();

    /**
     *查询一个项目中有多少配电房
     */
    List<PowerRoom> queryPowerroom(String projectId);

    /** 按条件查询配电房*/
    PageInfo<PowerRoom> selectByCityId(Integer pageNum, Integer pageSize,String cityId, String projectId );
    PageInfo<PowerRoom> selectByTokenId(Integer pageNum, Integer pageSize,String cityId, String projectId,String token);

    /*根据项目id查询配电房条数*/
    int selectCountByProjectId(String projectId);
/*    *//*根据项目id、token查询配电房条数*//*
    List<PowerRoom> queryPowerroomByToken(String projectId);*/
    /*模糊查询*/
    PageInfo<PowerRoom> queryPowerRoomLike(Integer pageNum,Integer pageSize,String text,String token);
}
